from wtforms import Form, StringField, PasswordField
from wtforms.validators import DataRequired, length, Email



class LoginForm(Form):
    email = StringField(validators=[DataRequired(), length(8, 64),
                                    Email(message='电子邮箱地址不符合')])
    password = PasswordField(validators=[DataRequired(message='密码不可以为空，请输入密码'),
                                         length(6, 32)])




